<template>
  <div class="box">
    <p>您的本次行程已结束</p>
    <div class="one">
      <van-rate
        v-model="value"
        :size="25"
        color="#ffd21e"
        void-icon="star"
        void-color="#eee"
        style="padding: 15px 0"
      />
      <p>请您对此次服务进行评价</p>
      <van-button plain type="info" size="small" @click="go"
        >点击提交</van-button
      >
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: 3,
    };
  },
  methods: {
    go() {
      this.$emit("car", false);
    },
  },
};
</script>

<style lang="scss" scoped>
.box {
  text-align: center;
  padding: 10px;
  p {
    padding: 10px 0 20px 0;
    font-size: 18px;
  }
  .one {
    width: 100%;
    height: 150px;
    border: 1px solid #999;
    border-radius: 20px;
  }
}
</style>